sandwich_orders = ['veggie', 'grilled cheese', 'turkey', 'roast beef','pastrami','pastrami','pastrami']

# 指出熟食店的五香烟熏牛肉（pastrami）卖完了
print("Sorry, we're out of pastrami.")

# 使用while循环删除sandwich_orders中的所有pastrami
while 'pastrami' in sandwich_orders:
    sandwich_orders.remove('pastrami')

# 打印sandwich_orders确保最终的列表中没有pastrami
print(sandwich_orders)